<?php
class Fender_Frame_Logger extends Fender_Base_Behavior
{
	protected $_error = '/tmp/fender.log';

	protected $_exception = '/tmp/fender.log';

	public function construct($logPath)
	{
		null !== $logPath && $this->_logPath = $logPath ;
	}

	public function write($message, $type = 'exception')
	{
		$path = '_' . $type;
		file_put_contents($this->$path, sprintf("%s\t%s\n", date('Y-m-d H:i:s'), $message), FILE_APPEND);
	}
}
